import torch

def test1():
    data1 = torch.tensor([[1,2],[3,4]])
    data2 = torch.tensor([[5,6],[7,8]])

    data = data1.mul(data2)
    print(data)

def test2():
    data1 = torch.tensor([[1,2],[3,4]])
    data2 = torch.tensor([[5,6],[7,8]])

    data = data1 * data2
    print(data)

if __name__ == '__main__':
    test1()
    test2()